package com.hectopascal.goalance.service.Ipml;

import com.hectopascal.goalance.pojo.User;
import com.hectopascal.goalance.pojo.dto.UserAdd;
import com.hectopascal.goalance.pojo.dto.UserBack;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

@Service
public interface IUserService {
    User userAdd(UserAdd userAdd);

    UserBack getUser(Integer userId);

    UserBack userLogin(User user);

    boolean verifyPassword(User user);

    int userUpdate(User user);

    int userDelete(Integer userId);

    Map<String, Object> getUsersInfo(Integer page, Integer size, String role, Integer departmentId, String username);

    List<UserBack> getEmployeeInfo(Integer userId);

    String userUpdateAvatar(MultipartFile file, Integer userId) throws IOException;
}
